package com.lb.design.pattern.proxypattern;

import com.lb.design.pattern.proxypattern.impl.JiaShi;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: liubin
 * Date: 2017-12-29
 * Time: 下午 2:44
 */
public class Test {

    public static void main(String[] args) {
        //首先 先把王婆叫出来
        WangPo wangPo = new WangPo();
        wangPo.makeEyeWithMan();
        wangPo.makeSomeThingWithMan();

        System.out.println("------------------------");
        JiaShi jiaShi = new JiaShi();
        wangPo = new WangPo(jiaShi);
        wangPo.makeSomeThingWithMan();
        wangPo.makeEyeWithMan();


    }

}
